<?php
/**
 * Route.php
 * 
 * @category   Naneau
 * @package    Naneau_Router
 * @copyright  Copyright (c) 2007 Maurice Fonk - http://naneau.nl
 * @version    0.1
 */

require_once 'Zend/Controller/Router/Interface.php';

/**
 * Naneau_Controller_Router_Route
 * 
 * just an experiment
 *
 * @category   Naneau
 * @package    Naneau_Router
 * @copyright  Copyright (c) 2007 Maurice Fonk - http://naneau.nl
 */
class Naneau_Controller_Router_Route extends Zend_Controller_Router_Route {
public function match ($path) {
    
    $modules = array('blog', 'news', 'pot');
    //or... get them from a config file
    
    $match = ltrim($path, '/');
    if (strstr($match, '/')) {
        //not empty and has a slash
        $match = substr($match, 0, strpos($match, '/'));
    }
    //first part of url
    
    if (in_array($match, $modules)) {
        //do something intelligent
    }
    else {
        //do something else (preferably intelligent)
    }
}
}